# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-taser
_pkgname=taser
pkgver=0.4.4
pkgrel=3
pkgdesc='Python module/library for retrieving taser information of domains.'
url='https://pypi.org/project/taser/#files'
arch=('any')
license=('BSD')
depends=('python' 'python-tldextract' 'python-requests' 'python-beautifulsoup4'
         'python-lxml' 'python-ipparser' 'python-dnspython'
         'python-requests-ntlm')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('59f39b532a9d6889fd607d2b846aa49a7831dfa5c09e13dc8ae54534f356caf98cae322e2ccc1083f0c347425e41b09921008b3cd5edae45fb1a976403094521')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

